<template>
    <div>
        {{rate}}
    </div>
</template>
<script setup lang="ts">
    import { computed } from 'vue';
    let props = defineProps({
        value: Number
    });
    let rate = computed(() => '★★★★★☆☆☆☆☆'.slice(5-props.value , 10-props.value));
</script>